﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

public partial class admin_news_addNews : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void publishButton_Click(object sender, EventArgs e)
    {
        string content_cn = contentTextBox_cn.Text;
        string content_en = contentTextBox_en.Text;
        DB db = new DB();
        db.addNews(content_cn,content_en);
    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        contentTextBox_cn.Text = "";
        contentTextBox_en.Text = "";
    }
}
